<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="vue.js"></script>
  <style>
    .box1{
      width:200px;
      height:200px;
      background: rgba(81, 184, 13, 0.568);
    }
  </style>
</head>
<body>
  <div id="app">
    <button @click="isShow = !isShow">change</button>
    <div class="box1" v-if="isShow">111</div>
    <p class="box1" v-else>222</p>
  </div>
  <script>
    new Vue({
      el:"#app",
      data:{
        isShow:true
      }
    })
  </script>
</body>
</html>